<div class="modal fade modal-md" id="modelContent">
	<div class="modal-dialog modal-md">
        <div class="modal-content"></div>
    </div>
</div>
<div class="portlet light bordered">
	<div class="portlet-title">
        <div class="caption font-dark">
            <i class="fa fa-cog font-dark"></i>
            <span class="caption-subject bold">账房 > 单据管理 > 收款单 > 收款单详情</span>
        </div>
    </div>
    <div class="portlet-body form">
    	<form role="form" action="" class="form-horizontal" method="">
    	<div class="portlet-title">
             <div class="caption font-dark">
                 <span class="caption-subject bold">订单收款明细</span>
             </div>
         </div>
         <div class="form-body left">
         	<div class="form-group">
                <label class="control-label col-md-2">收款单号：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.id</div>
                <label class="control-label col-md-2">订单号：</label>
                <div class="control-label col-md-2" style="text-align:left">#if($item.orderId) $!item.orderId #else - #end</div>
                <label class="control-label col-md-2">订单金额：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.orderFee</div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">支付类型：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.settleWay.name</div>
                <label class="control-label col-md-2">收款金额：</label>
                <div class="control-label col-md-2" style="text-align:left">#if($!item.cashFee)$!item.cashFee #else - #end </div>
                <label class="control-label col-md-2">改价减免金额：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.otherReduction</div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">支付时间：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.payDate</div>
                <label class="control-label col-md-2">到账时间：</label>
                <div class="control-label col-md-2" style="text-align:left">$!item.reachDate</div>
                <label class="control-label col-md-2">付款会员：</label>
                <div class="control-label col-md-2" style="text-align:left">#if($!item.orderUserName) $!item.orderUserName #else-#end($!userInfo.id) </div>
            </div>
            
            <div class="form-group">
                <label class="control-label col-md-2">所属企业：#if($!itemCompany.name) $!itemCompany.name #else - #end</label>
                <div class="control-label col-md-2" style="text-align:left"></div>
                <label class="control-label col-md-2">附件：#if($!item.attachImage)$!item.attachImage #else - #end </label>
                <div class="control-label col-md-2" style="text-align:left"></div>
            </div>
         </div>
         
         <div class="portlet-title">
             <div class="caption font-dark col-md-1">
                 <span class="caption-subject bold">订单货品信息</span>
             </div>
             <p class="col-md-4">
             	#if($itemList.size() != '0')
         	     <a href="javascript:;" id="exportExcel" class="btn green "><i class="fa fa-download"></i>导出报价单</a>
       	     	#end
         	  </p>
         </div>
         <div class="form-body left">
             <div class="form-group">
                 <div class="col-md-12">
                     <table class="table table-striped table-bordered table-hover">
                         <thead>
                         <tr>
                             <th>货品编号</th>
                             <th>货品名称</th>
                             <th>规格</th>
                             <th>品牌</th>
                             <th>销售单价(￥)</th>
                             <th>单品积分</th>
                             <th>购买数量</th>
                         </tr>
                         </thead>
                         <tbody id="itemGroup">
                         #foreach ($item1 in $itemList)
                         #set($sku = $skuMap.get($item1))
                         #set($count = ($velocityCount+(-1)))
                         <tr>
                             <td>$!item1.skuCode</td>
                             <td>$!item1.productName</td>
                             <td>$!item1.attrAndAttrValues</td>
                             <td>$!productList.get($count)</td>
                             <td>$!item1.price</td>
                             <td>$!item1.score</td>
                             <td>$!item1.quantity</td>
                          </tr>
                          #end
                         </tbody>
                     </table>
                 </div>
             </div>
         </div>
         <div class="form-actions right">
				<a href="/orderReceipt/list" class="btn btn-outline grey-salsa ajaxify">返回</a>
         </div>  
         </form>
		<form id="excel_download" action="/orderReceipt/exportOrderExcel"
			class="hide" method="POST">
			<input type="hidden" name="rId" id="rId" value="$!item.id">
			<button type="submit"></button>
		</form>
	</div>
</div>
<script type="text/javascript">
/**
 * 导出报价单
 */
$("#exportExcel").click(function(){
	$("#excel_download").submit();
})
</script>
